package com.ischoolbar.programmer.dao.admin;

import com.ischoolbar.programmer.entity.admin.Role;
import com.ischoolbar.programmer.entity.admin.User;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;

@Repository
public interface UserDao {
    public abstract User findUserByUsername(String username);

    public abstract int add(User user);
    public abstract int edit(User user);
    public abstract void delete(String ids);
    public abstract List<User> findAllUser(Map<String, Object> queryMap);
    public abstract int getTotalCount();
    public abstract Role findRoleByUser(Integer id);
}
